package events
{
	import behaviors.IPlayListHandler;
	
	import ca.newcommerce.youtube.data.VideoData;
	
	import flash.events.Event;
	
	public class PlayVideoEvent extends Event
	{
		public static var PLAY_VIDEO_EVENT:String = "playVideoEvent";	
		public var videoData:VideoData;
		public var playListHandler:IPlayListHandler;
		public var requiredRelatedVideos:Boolean; 
		
		public function PlayVideoEvent(videoData:VideoData,playListHandler:IPlayListHandler=null,requiredRelatedVideos:Boolean=false)
		{
			super(PLAY_VIDEO_EVENT,true,false);
			this.videoData = videoData;
			this.playListHandler = playListHandler;
			this.requiredRelatedVideos = requiredRelatedVideos;
		}
		
		override public function clone() : Event
		{
			return new PlayVideoEvent(videoData, playListHandler, requiredRelatedVideos);
		}

	}
}